﻿@model IEnumerable<ArunimaErp.Domain.ViewModel.PoSplitViewModel>

@{
    Layout = null;
}

<!DOCTYPE html>

    <p>
        @Html.Label("No of PO : ")
        @Html.TextBox("No")
        <button>Split</button>
    </p>


    <table id="splitTable">
        <tr>
            <th>
                
            </th>
            <th>
                PoNo
            </th>
            <th>
                Fob
            </th>
            <th>
                OrderQuantity
            </th>
            <th>
                ExitDate
            </th>
        </tr>

        @using (Html.BeginForm()){

            foreach (var item in Model) {
                <tr>
                    <td>
                        @Html.HiddenFor(modelItem => item.PoStyleId)
                    </td>
                    <td>
                        @Html.TextBoxFor(modelItem => item.PoNo, new { id = "item[0].PoNo" })
                    </td>
                    <td>
                        @Html.TextBoxFor(modelItem => item.Fob, new { id = "item[0].Fob" })
                    </td>
                    <td>
                        @Html.TextBoxFor(modelItem => item.OrderQuantity, new { id = "item[0].OrderQuantity" })
                    </td>
                    <td>
                        @Html.TextBoxFor(modelItem => item.ExitDate, new { id = "item[0].ExitDate" })
                    </td>
                </tr>    
        </table>

        <p>
            <input type = "submit" value = "Done"></input>
        </p>
        }
    }
